﻿@{
    ViewBag.Title = "Dashboard";
    Layout = "../Shared/_Layout.cshtml";
}
@using DataAccessLayer
@model BusinessLogicLayer.TasksDashBoard

<div>
    <div id='cssmenu'>
        <ul>
            <li class='active'><a href='#'><span>Task Dashboard</span></a></li>
            <li><a href='#'><span>Project Dashboard</span></a></li>
            <li><a href='#'><span>User Stories Dashboard</span></a></li>
        </ul>
    </div>
</div>
<div class="body_div">
    <div class="board_div_first">
        <h3 class="status">To Do</h3>
        @foreach (var task in Model.Columns[Statuses.New].ColumnItems)
        {
            <div class="task_div" onclick=" ShowDetails('@task.Name') ">
                <p>Task Name : @task.Name</p>
                <p>Project Name : @(((Task)task).ProjectName)</p>
                <p>Owner : @task.AssignedTo.FullName()</p>
            </div>
        }
    </div> 
    <div class="board_div_second">
        <h3 class="status">In Progress</h3>
        @foreach (var task in Model.Columns[Statuses.InProgress].ColumnItems)
        {
            <div class="task_div" onclick=" ShowDetails('@task.Name') ">
                <p>Task Name : @task.Name</p>
                <p>Project Name : @(((Task)task).ProjectName)</p>
                <p>Owner : @task.AssignedTo.FullName()</p>
            </div>
        }
    </div> 
    <div class="board_div_third">
        <h3 class="status">Done</h3>
        @foreach (var task in Model.Columns[Statuses.Done].ColumnItems)
        {
            <div class="task_div" onclick=" ShowDetails('@task.Name') ">
                <p>Task Name : @task.Name</p>
                <p>Project Name : @(((Task)task).ProjectName)</p>
                <p>Owner : @task.AssignedTo.FullName()</p>
            </div>
        }
    </div> 
    <div id="task_details">
               
    </div> 
</div>







